from django.core.files.storage import Storage


class FastDFSStorage(Storage):
    """自定义fastfds文件存储类"""
    def _open(self,name,mode='rb'):
        pass

    def _save(self,name,content):
        pass

    def url(self, name):
        # name:fileid
        return 'http://192.168.211.130:8888/' + name